package com.damon.g2048.log;

import com.damon.g2048.ConfigData;


/**
 * @ClassName: LogFactory
 * @author Damon.Han
 * @Description: Log
 * @date 2013-12-27 下午3:59:04
 * 
 */
public class LogFactory {
	public static final String tag = ConfigData.TAG;
	public static ELog commonLog;
	/**
	 * 
	 * @Description: 单例创建log对象
	 * @param
	 * @return CommonLog
	 * @throws
	 */
	public static ELog createLog() {
		if (commonLog == null) {
			commonLog = new ELog();
		}
		commonLog.setTag(tag);
		return commonLog;
	}
	/**
	 * @Description: 单例创建对象
	 * @param
	 * @return commonLog
	 * @throws
	 */
	public static ELog createLog(String tag) {
		if (commonLog == null) {
			commonLog = new ELog(tag);
		}
		commonLog.setTag(tag);
		return commonLog;
	}
}
